package com.sharkburner.aeris.bean.article;

import java.util.List;

import javax.xml.bind.annotation.XmlAttribute;
import javax.xml.bind.annotation.XmlElement;
import javax.xml.bind.annotation.XmlElementWrapper;
import javax.xml.bind.annotation.XmlRootElement;

@XmlRootElement(name="rss")
public class RssBean {
	
	private String version;
	
	/**
	 * Article list
	 */
	private List<ArticleBean> articleList;

	@XmlElementWrapper(name="channel")
	@XmlElement(name="item")
	public List<ArticleBean> getArticleList() {
		return articleList;
	}

	public void setArticleList(List<ArticleBean> articleList) {
		this.articleList = articleList;
	}

	public void setVersion(String version) {
		this.version = version;
	}

	@XmlAttribute(name="version")	
	public String getVersion() {
		return version;
	}
}
